#ifndef _HAL_MODBUS_UART_H_
#define _HAL_MODBUS_UART_H_

#include "stm32l5xx_hal.h"
#include "hal_uart.h"

extern UART_HandleTypeDef huart2;
extern uart_t g_modbus_uart;
extern uint8_t g_modbus_rx_char;

void hal_modbus_uart_init(void);
int32_t hal_modbus_uart_write(uint8_t *data, uint32_t data_len);
int32_t hal_modbus_uart_read(uint8_t *buff, uint32_t buff_len);

#endif
